<?php 
## include required files
/*******************************/
require_once '../../includefiles.php';
require_once '../../model/users.php';
require_once '../../model/email.php';
include_once("../../model/state.php");
require_once "../../includes/classes/paging_htacess.php";
include_once("../../model/blogs.php");

## creating objects of required models
$userObj  = new Model_Users();
$tradeObj = new Model_TRADE();
$stateObj = new Model_State();
$blogsObj = new Model_Blogs();


## for pagination
$id = base64_decode($_GET['id1']);
$blog = $blogsObj->getBlogDetailsById($id);
$active ="blogs";
$smarty->assign('active',$active);
$smarty->assign('blog',$blog);
$smarty->assign("seoArray",array('meta_title'=>$blog['title']. ' - Blog'));
$smarty->display(TEMPLATEDIR.'/modules/blogs/blogdetail.tpl');
unset($smarty);
?>
